package com.sundaying.gooway.dao;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

public interface BaseDao<T> {

	public void save(T t);

	public void update(T t);

	public void saveOrUpdate(T t);

	public void merge(T t);

	public void delete(T t);

	public List<T> list(String hql, List<Object> param);

	public List<T> list(String hql, List<Object> param, int page,
			int rows);

	public T get(Class<T> c, Serializable id);

	public T get(String hql, List<Object> param);

	public T load(Class<T> c, Serializable id);

	public Long count(String hql, List<Object> param);

	public Integer executeHql(String hql);

	public Integer executeHql(String hql, List<Object> param);

}